package com.nandi.emergencyinspection.bean

/**
 * @创建者: qingsong
 * @创建时间: 2021/3/31 21:02
 * @描述:
 */
 class UserInfoBean {
    /**
     * avatar :
     * avatarFile : {"businessCode":"","createtime":"","createuserid":0,"customName":"","fileSize":0,"filetype":"","id":0,"netUrl":"","originalName":"","relativePath":"","remark":""}
     * createTime :
     * delFlag :
     * deptCanSelect : true
     * deptId : 0
     * deptName :
     * lockFlag :
     * password :
     * phone :
     * realname :
     * remark :
     * roleList : [{"canSelect":true,"createTime":"","delFlag":0,"isCanDelete":true,"isCanEdit":true,"roleCode":"","roleDesc":"","roleId":0,"roleName":"","updateTime":""}]
     * salt :
     * sex :
     * updateTime :
     * userId : 0
     * username :
     */
    var avatar: String? = null
    var avatarFile: AvatarFileBean? = null
    var createTime: String? = null
    var delFlag: String? = null
    var isDeptCanSelect = false
    var deptId = 0
    var deptName: String? = null
    var lockFlag: String? = null
    var password: String? = null
    var phone: String? = null
    var realname: String? = null
    var remark: String? = null
    var salt: String? = null
    var sex: String? = null
    var updateTime: String? = null
    var userId = 0
    var username: String? = null
    var roleList: List<RoleListBean>? = null

    class AvatarFileBean {
        /**
         * businessCode :
         * createtime :
         * createuserid : 0
         * customName :
         * fileSize : 0
         * filetype :
         * id : 0
         * netUrl :
         * originalName :
         * relativePath :
         * remark :
         */
        var businessCode: String? = null
        var createtime: String? = null
        var createuserid = 0
        var customName: String? = null
        var fileSize = 0
        var filetype: String? = null
        var id = 0
        var netUrl: String? = null
        var originalName: String? = null
        var relativePath: String? = null
        var remark: String? = null
    }

    class RoleListBean {
        /**
         * canSelect : true
         * createTime :
         * delFlag : 0
         * isCanDelete : true
         * isCanEdit : true
         * roleCode :
         * roleDesc :
         * roleId : 0
         * roleName :
         * updateTime :
         */
        var isCanSelect = false
        var createTime: String? = null
        var delFlag = 0
        var isIsCanDelete = false
            private set
        var isIsCanEdit = false
            private set
        var roleCode: String? = null
        var roleDesc: String? = null
        var roleId = 0
        var roleName: String? = null
        var updateTime: String? = null
        fun setIsCanDelete(isCanDelete: Boolean) {
            isIsCanDelete = isCanDelete
        }

        fun setIsCanEdit(isCanEdit: Boolean) {
            isIsCanEdit = isCanEdit
        }
    }
}